package com.lovegu.object.down;

/**
 * @author 老顾
 * @title: InnerTest
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/21 19:27
 */
class Outer {
    private int s;
    public class Inner {
        public void mb() {
            s = 100;
            System.out.println("在内部类Inner中s=" + s);
        }
    }
    public void ma() {
        Inner i = new Inner();
        i.mb();
    }
}
public class InnerTest {
    public static void main(String args[]) {
        Outer o = new Outer();
        o.ma();
    }
}
